package com.freelancer.musicinstruction.services.impl.youtube.enums;

public enum OrderBy {
	
	RELEVANCE ( "relevance", "Order Search Results by Relevance"), 
	PUBLISHED ( "published", "Order Search Results by Date of Publishing"), 
	VIEWCOUNT ( "viewCount", "Order Search Results by View Count"), 
	RATING ( "rating", " Order Search Results by Rating");
	
	
	private final String description;
	private final String value;
	
	OrderBy ( String value, String description ){
		this.value = value;
		this.description = description;
	}
	
	public String getDescription() {
		return description;
	}
	public String getValue() {
		return value;
	}
	
	public String getSummary () {
		return "The orderby parameter, which is only supported for video feeds, " +
				"specifies the value that will be used to sort videos in the search result set.";
	}
}
